﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Code.Models
{

    public class AppException:Exception
    {

        public AppException()  : base("系统错误"){ }
        public AppException(string message) : base(message) { }
    }

    public class ValidateException : AppException
    {
        public ValidateException() : base("参数不正确") { }
        public ValidateException(string message) : base(message) { }
        public ValidateException(string message, string source) : base(message) { this.Source = source; }
    }

    public class BetValidateException : ValidateException
    {
        public BetValidateException() : base("参数不正确") { }
        public BetValidateException(string message) : base(message) { }
        public BetValidateException(string message, string source) : base(message) { this.Source = source; }        
    }
}
